package com.hoshiicloud.rbac.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 2019/9/17 19:21  qry
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "部门关联用户对象", description = "部门关联用户对象")
public class SysDepartmentUsers extends Model<SysDepartmentUsers> {
    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("部门ID")
    private Long departmentId;

    @ApiModelProperty("用户ID")
    private Long userId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
